import requests from '../common/request'

// export function getActivityDetail(data) {
//   return requests.get({
//     url: '/marketing/app/activity/detail',
//     data: data
//   })
// }

export function getActivityDetail(data) {
  return requests.get({
    url: '/marketing/open/activity/detail',
    data: data
  })
}
// export function getActivityList(data) {
//   return requests.get({
//     url: '/marketing/app/activity/list',
//     data: data
//   })
// }

export function getActivityList(data) {
  return requests.get({
    url: '/marketing/open/activity/list',
    data: data
  })
}

export function receiveCoupon(data) {
  return requests.post({
    url: '/marketing/app/activity/receiveCoupon',
    data: data
  })
}
// export function getActivityListIds(data) {
//   return requests.post({
//     url: '/marketing/app/activity/activityList',
//     data: data
//   })
// }

export function getActivityListIds(data) {
  return requests.post({
    url: '/marketing/open/activity/activityList',
    data: data
  })
}
export function getGoodActivity(data) {
  return requests.get({
    url: "/marketing/app/activity/goodsSingleItemActivity" + "?goodsCode=" + data
  })
}

// 营销活动预约
export function bookingMarketing(data) {
  return requests.post({
    url: "/mall/anon/goods/marketing/booking",
    data: data
  })
}

//活动提醒
export function activityNoticeFn(data) {
  return requests.post({
    url: "/mall/anon/goods/marketing/notice",
    data: data
  })
}

//消耗流量
export function getMercFlowConsume(data) {
  return requests.get({
    url: "/flowApp/mercFlowConsume",
    data: data
  })
}
//流量提示
export function getRemindFlag(data) {
  return requests.get({
    url: "/flowApp/remindFlag",
    data: data
  })
}